import pandas as pd

df = pd.read_csv("D:\数据挖掘\数据预处理-两次实验\数据预处理-实验2\\titanic.csv", usecols=['PassengerId','Survived','Pclass','Name','Sex','Age','SibSp','Parch','Ticket','Fare','Cabin','Embarked'])
df.drop(['PassengerId','Name','Ticket'],axis=1,inplace=True)
print(df)